import fsextra from "fs-extra";
import path from "path";
import { __dirname } from "./index";

export async function emptytempfolder() {
    const pagepath = path.resolve(__dirname, "../temp");
    await fsextra.ensureDir(pagepath);

    try {
        await fsextra.emptyDir(pagepath);
    } catch (error) {}

    return;
}
